#@base("学生考试")

#define content()
    <div class="page-header">
      <h1>考试查询 <small>#(semester)</small></h1>
    </div>

    <form class="form-inline query-form" method="get">
        <div class="input-group">
            <span class="input-group-addon" id="basic-addon1">班级简称(见提示):</span>
            <input type="text" id="name" class="form-control" aria-describedby="basic-addon1">

            <span class="input-group-btn">
                <button class="btn btn-default" id="query" type="button" formmethod="get" data-toggle="modal"
                        data-target="#myModal">查询</button>
            </span>
        </div>

        <div class="custom-control custom-checkbox mb-3">
            <input type="checkbox" class="custom-control-input" id="make_up_exam" name="make_up_exam" value="true">
            <label class="custom-control-label" for="make_up_exam">查看包含该班级的补考</label>
        </div>
    </form>


    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                            aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="myModalLabel">请选择</h4>
                </div>
                <div id="select_list" class="modal-body">
                </div>
            </div>
        </div>
    </div>

    <div class="info-tip">
        <div class="alert alert-info" role="alert">
            <p><strong>little tip:</strong></p>
            <p>1. 输入学生班级即可.</p>
            <p> 例如：17计科本二 或者 17计科 或者 17金融</p>
            <p>2. 由于无法准确筛选，请结合本学期所学课程确定最终需要考试的科目</p>
            <p>3. 考试安排仅供参考.</p>
        </div>
    </div>
#end

#define js()
<script src="/static/js/post.js"></script>
<script src="/static/js/testQuery.js"></script>

#end

